﻿using Domain.Core;
using System.Linq;

namespace Application.Core
{
    public interface ICommonService<T> : IBaseService where T : BaseEntity
    {
        void Add(T entity);

        IQueryable<T> Find();

        T FindById(int id);

        void Remove(int id);

        void Update(T entity);
    }
}